package com.dragon.common.feign.core;

import feign.RequestInterceptor;
import org.springframework.http.HttpHeaders;

/**
 * @date: 2024/8/8 11:21
 * @author: ybl
 */

public class DragonFeignRequestCloseInterceptor implements RequestInterceptor {

    /**
     * set connection close
     * @param template
     */
    @Override
    public void apply(feign.RequestTemplate template) {
        template.header(HttpHeaders.CONNECTION, "close");
    }

}
